package com.java.zhuiyun.api.achievement.dao;

import com.java.zhuiyun.api.achievement.entity.Achievement;
import com.java.zhuiyun.common.response.CommonResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AchievementMapper {
    /**
    * @Author MJL
    * @Description todo 添加成就信息
    * @Date 2023/9/13 11:01
    * @Return  * @param null
    */
    Integer addAchievement(Achievement achievement);
    /**
    * @Author MJL
    * @Description todo 查询所有成就信息
    * @Date 2023/9/13 11:01
    * @Return  * @param null
    */
    List<Achievement> queryAchievement(Achievement achievement);
    /**
    * @Author MJL
    * @Description todo 修改成就信息
    * @Date 2023/9/13 14:13
    * @Return  * @param null
    */
    Integer updateAchievement(Achievement achievement);
    /**
    * @Author MJL
    * @Description todo 删除单个成就
    * @Date 2023/9/13 14:26
    * @Return  * @param null
    */
    Integer deleteAchievement(Integer id);
    /**
    * @Author MJL
    * @Description todo 将成就下架
    * @Date 2023/9/13 14:36
    * @Return  * @param null
    */
    Integer bannedAchievement(Integer id);
    /**
    * @Author MJL
    * @Description todo 将成就上架
    * @Date 2023/9/13 14:42
    * @Return  * @param null
    */
    Integer enableAchievement(Integer id);

    CommonResult getByIdIdiom(Integer id);

    /*
     * @Author WX
     * @Description 查询可用成就信息
     * @Date 2023/10/16 8:52
     * @Return
     * @param null
     */
    List<Achievement> selectAvailableAchievement();
}
